package com.otaliastudios.cameraview.livedata

import androidx.annotation.MainThread
import androidx.lifecycle.MutableLiveData


class RecordPauseLiveData(isPause: Boolean) : MutableLiveData<Boolean>(isPause) {

    companion object {
        private lateinit var sInstance: RecordPauseLiveData

        @MainThread
        fun get(): RecordPauseLiveData {
            sInstance =
                if (Companion::sInstance.isInitialized) sInstance else RecordPauseLiveData(false)
            return sInstance
        }
    }

}